
for row in range(9,0,-1): #打印行，使用了倒序9.8.7.6.....
    for block in range(9,row,-1):
        print(end="       ")

    for col in range(row,0,-1): #打印列
        res = row * col
        print("{0}*{1}={2:2d}".format(col, row, res ),end=" ")

    print()